Ulm Ux Api
Starlink - TMF666 - Retrieve billingAccount by ID
Uses Cases
This usecase is used to retrieve the Customer's billingAccount Details based on the account number.
/billingAccount/{id}
[GET]
https://[localhost]:[port]/{env}/ulm-ux/v1/{businessId}/billingAccount/{id}CWP URL
https://nonprod.cwp.esb.cloud.lla.com/preprod/ulm-ux-cwp/ulm-ux/v1/PA/billingAccount/{id}
LCPR URL
https://nonprod.esb.cloud.lla.com/test/ulm-ux/ulm-ux/v1/PR/billingAccount/{id}
LC URL (including Latam)
https://nonprod.lc.esb.cloud.lla.com/test/ulm-ux-lc/ulm-ux/v1/JM/billingAccount/{id}
LCR URL
https://nonprod.lcr.esb.cloud.lla.com/test/ulm-ux-lcr/ulm-ux/v1/CR/billingAccount/{id}
cURL Request
curl --location 'https://nonprod.cwp.esb.cloud.lla.com/preprod/ulm-ux-cwp/ulm-ux/v1/PA/billingAccount/{id}' \
--header 'client_id: xxxxxxx' \
--header 'client_secret: xxxxxxx' \
--header 'X-Correlation-ID: {{$guid}}'URL PARAMS
| name | type | description | required |
|---|---|---|---|
| businessId | string | 2 letter ISO 3166 country code (JM,KY,BB,TT,PR,CR,CO,SV,GT,HN,DO,PA) identifying the business unit. | Y |
| id | string | Billing Account Number | Y |
Header
| name | type | description | required |
|---|---|---|---|
| client_id | string | The client_id identifying the channel. Minimum characters: 5 | Y |
| client_secret | string | Password associated with the client_id. Minimum characters: 5 | Y |
| X-Correlation-ID | string | Identifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction. | N |
Body
NOTE:
- All Use Cases are listed and referenced to their examples on Use Case section
- All definitions are described on RAML, inside of Anypoint Design Center.
Definitions
Possible response success
This section defines all the possible data structures received by the client and that must be considered satisfactory at the time of responding to the method.
[ 200 ]
OK - request processed successfully, response body contains an entity corresponding to the requested resource.
NOTE:
- All Use Cases are listed and referenced to their examples on Use Case section
- All definitions are described on RAML, inside of Anypoint Design Center.
Response
In this section all the possible data structures received by the client at the moment of responding the method are defined. This is an example for PR market.
{
"id": "361013670000",
"accountType": "R",
"description": "Residencial",
"name": "Starlink QA ITB LEON PRUEBAS",
"paymentStatus": "Active",
"state": "C",
"accountBalance": [
{
"amount": {
"value": 0.00,
"unit": "PAB"
},
"balanceType": "NetPayable"
},
{
"amount": {
"value": 0.00,
"unit": "PAB"
},
"balanceType": "LastBillAmount",
"validFor": {
"endDateTime": "1858-11-17T00:00:00.000-05:18"
}
},
{
"amount": {
"value": 0.00,
"unit": "PAB"
},
"balanceType": "LastPayment Amount",
"validFor": {
"endDateTime": "1858-11-17T00:00:00.000-05:18"
}
},
{
"amount": {
"value": 0.00,
"unit": "PAB"
},
"balanceType": "Overdue Amount"
},
{
"amount": {
"value": 0.00,
"unit": "PAB"
},
"balanceType": "DepositRequired"
},
{
"amount": {
"value": 0.00,
"unit": "PAB"
},
"balanceType": "WrittenOffAmount"
},
{
"amount": {
"value": 0.00,
"unit": "PAB"
},
"balanceType": "TotalQuery"
},
{
"amount": {
"value": 0.00,
"unit": "PAB"
},
"balanceType": "TotalOutstandingBalance"
},
{
"amount": {
"value": 0.00,
"unit": "PAB"
},
"balanceType": "DepositHeld"
},
{
"amount": {
"value": 0.00,
"unit": "PAB"
},
"balanceType": "Total Query Tax"
},
{
"amount": {
"value": 0.00,
"unit": "PAB"
},
"balanceType": "TotalAdjustmentCredit"
},
{
"amount": {
"value": 0.00,
"unit": "PAB"
},
"balanceType": "TotalDepositPaid"
},
{
"amount": {
"value": 0.00,
"unit": "PAB"
},
"balanceType": "TotalServiceChargeCredit"
},
{
"amount": {
"value": 0.00,
"unit": "PAB"
},
"balanceType": "TotalRewards"
},
{
"amount": {
"value": 0.00,
"unit": "PAB"
},
"balanceType": "TotalAvailablePointsAmount"
}
],
"billStructure": {
"cycleSpecification": {
"id": "A",
"paymentDueDate": "1858-11-17T00:00:00.000Z",
"billingDay": 17
},
"presentationMedia": [
{
"id": "B",
"name": "Paper and Email Bills"
},
{
"id": "S",
"name": "BillLanguage"
}
]
},
"contact": [
{
"contactMedium": [
{
"mediumType": "BillingAddress",
"characteristic": {
"street1": "PANAMA",
"street2": "PANAMA",
"city": "PANAMA",
"stateOrProvince": "PANAMA"
}
},
{
"mediumType": "Telephone",
"characteristic": {
"phoneNumber": "SAT00004",
"contactType": "serviceNumber"
}
}
],
"relatedParty": {
"@referredType": "RelatedParty"
}
},
{
"contactName": "PRUEBA QA",
"partyRoleType": "OWNER",
"contactMedium": [],
"relatedParty": {
"@referredType": "RelatedParty"
}
}
],
"creditLimit": {
"unit": "PAB",
"value": 0.00
},
"defaultPaymentMethod": {},
"financialAccount": {
"id": "361013670000",
"@referredType": "FinancialAccount"
},
"paymentPlan": [
{
"priority": 0,
"planType": "9",
"status": "",
"@Type": "SupportsRecurringPayments"
}
],
"relatedParty": [
{
"id": "JUAN1234",
"name": "Starlink QA ITB LEON PRUEBAS",
"role": "customer",
"@type": "Customer",
"@referredType": "Customer",
"@baseType": "RelatedParty",
"characteristic": [
{
"name": "DocumentType",
"value": "PP"
},
{
"name": "DocumentNumber",
"value": "JUAN1234"
},
{
"name": "FirstName",
"value": "Starlink QA ITB",
"valueType": "string"
},
{
"name": "LastName",
"value": "LEON PRUEBAS",
"valueType": "string"
},
{
"name": "Date-Of-Birth",
"value": "03-Feb-1988 00:00:00",
"valueType": "string"
},
{
"name": "StartDate",
"value": "2026-09-07T11:09:21.000-05:00",
"valueType": "DateTime"
},
{
"name": "Customer Identity",
"valueType": "array",
"value": [
{
"DocumentType": "PP",
"DocumentNumber": "JUAN1234",
"DocumentDescription": "Pasaporte"
}
]
}
]
},
{
"id": "0",
"role": "MigratedAccount"
},
{
"id": "LIME",
"role": "legalEntity"
},
{
"@type": "Account",
"characteristic": [
{
"name": "BaseAccountType",
"value": "RES"
}
]
},
{
"id": "990000",
"name": "Residencial",
"role": "marketingCategory"
}
]
}Possible response error
In this section all the possible data structures received by the client are defined and that must be considered as unsatisfactory when responding to the method.
[ 400 ]
Bad Request - the request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.
{
"errors" : [{
"code" : 400,
"message" : "The request is invalid or not properly formed.",
"description" : "Malformed request syntax, invalid request message framing, or deceptive request routing."
}]
}[ 401 ]
Unauthorized - The request has not been applied because it lacks valid authentication credentials for the target resource.
{
"errors" : [{
"code" : 401,
"message" : "The user could not be authenticated for this request.",
"description" : "The request has not been applied because it lacks valid authentication credentials for the target resource."
}]
}[ 404 ]
Not Found - server has not found a resource with that URI. This may be temporary and permanent condition. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.
{
"errors": [
{
"code": 404,
"message": "LLA : Account billing details not found for reference id:xxxxxxxxxx",
"description": "NOACCTSFOUND-No Accounts found-xxxxxxxxxxxx"
}
]
}[ 500 ]
Internal Server Error - server encountered an error processing request. This should not happen normally, but it is a generic error message, given when no more specific message is suitable.
{
"errors" : [{
"code" : 500,
"message" : "Internal Server Error",
"description": "The request failed due to an internal error."
}]
}[ 501 ]
Not implemented - indicates that the server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource.
{
"errors" : [{
"code" : 501,
"message" : "Not implemented",
"description" : "Operation GET /service for Business Id: xxxx not implemented"
}]
}Response
Definitions
Each of the request parameters is detailed.
| Field | Type | Description | Required |
|---|---|---|---|
| id | string | Billing account identifier | Y |
| name | string | Billing account name | N |
| description | string | Billing account description | N |
| accountType | string | Billing account type/classification | N |
| state | string | Billing account status/state | N |
| paymentStatus | string | Payment status of billing account | N |
| lastModified | string | Last modification timestamp | N |
| @type | string | TMF entity type | N |
| accountBalance | Array | Account balances associated with the billing account | N |
| accountBalance.balanceType | string | Type of balance | N |
| accountBalance.amount | object | Balance amount information | N |
| accountBalance.amount.value | number | Monetary value of balance | N |
| accountBalance.amount.unit | string | Currency of the balance amount | N |
| accountBalance.validFor | object | Validity period of balance | N |
| accountBalance.validFor.startDateTime | string | Balance validity start date | N |
| accountBalance.validFor.endDateTime | string | Balance validity end date | N |
| accountRelationship | Array | Relationships to other accounts | N |
| accountRelationship.relationshipType | string | Relationship type | N |
| accountRelationship.validFor | object | Relationship validity | N |
| accountRelationship.validFor.startDateTime | string | Relationship start date | N |
| accountRelationship.validFor.endDateTime | string | Relationship end date | N |
| accountRelationship.account | object | Related account details | N |
| accountRelationship.account.id | string | Related account identifier | N |
| accountRelationship.account.name | string | Related account name | N |
| accountRelationship.account.description | string | Related account description | N |
| accountRelationship.account.@type | string | Related account type | N |
| billStructure | object | Billing cycle and presentation configuration | N |
| billStructure.cycleSpecification | object | Billing cycle details | N |
| billStructure.cycleSpecification.id | string | Billing cycle identifier | N |
| billStructure.cycleSpecification.billingDay | number | Billing day of month | N |
| billStructure.cycleSpecification.paymentDueDate | string | Payment due date | N |
| billStructure.cycleSpecification.frequency | string | Billing frequency | N |
| billStructure.cycleSpecification.name | string | Billing cycle name | N |
| billStructure.cycleSpecification.dateShift | number | Billing date shift value | N |
| billStructure.presentationMedia | Array | Bill presentation preferences | N |
| billStructure.presentationMedia.id | string | Presentation medium code | N |
| billStructure.presentationMedia.name | string | Presentation medium description | N |
| contact | Array | Contact information associated with account | N |
| contact.contactName | string | Contact name | N |
| contact.contactType | string | Contact type | N |
| contact.partyRoleType | string | Role of contact against account | N |
| contact.relatedParty | object | Related party details for contact | N |
| contact.relatedParty.id | string | Related party identifier | N |
| contact.relatedParty.name | string | Related party name | N |
| contact.relatedParty.role | string | Related party role | N |
| contact.relatedParty.@referredType | string | Type of referred related party | N |
| contact.contactMedium | Array | Contact channels | N |
| contact.contactMedium.mediumType | string | Contact medium type | N |
| contact.contactMedium.preferred | boolean | Indicates preferred contact method | N |
| contact.contactMedium.characteristic | object | Contact medium characteristics | N |
| contact.contactMedium.characteristic.contactType | string | Contact classification | N |
| contact.contactMedium.characteristic.phoneNumber | string | Phone number | N |
| contact.contactMedium.characteristic.emailAddress | string | Email address | N |
| contact.contactMedium.characteristic.street1 | string | Address line 1 | N |
| contact.contactMedium.characteristic.street2 | string | Address line 2 | N |
| contact.contactMedium.characteristic.city | string | City | N |
| contact.contactMedium.characteristic.stateOrProvince | string | State or province | N |
| contact.contactMedium.characteristic.country | string | Country | N |
| contact.contactMedium.characteristic.postCode | string | Postal code | N |
| contact.contactMedium.characteristic.entrance | string | Entrance/building reference | N |
| contact.contactMedium.characteristic.informalAddress | string | Informal address description | N |
| creditLimit | object | Credit limit information | N |
| creditLimit.value | number | Credit limit amount | N |
| creditLimit.unit | string | Credit limit currency | N |
| defaultPaymentMethod | object | Default payment method | N |
| defaultPaymentMethod.id | string | Payment method code | N |
| defaultPaymentMethod.name | string | Payment method description | N |
| financialAccount | object | Associated financial account | N |
| financialAccount.id | string | Financial account identifier | N |
| financialAccount.@referredType | string | Referenced financial account type | N |
| financialAccount.accountBalance | object | Financial account balance | N |
| financialAccount.accountBalance.balanceType | string | Financial account balance type | N |
| financialAccount.accountBalance.amount | object | Financial balance amount | N |
| financialAccount.accountBalance.amount.value | number | Financial balance value | N |
| financialAccount.accountBalance.amount.unit | string | Financial balance currency | N |
| financialAccount.accountBalance.validFor | object | Financial balance validity | N |
| financialAccount.accountBalance.validFor.startDateTime | string | Financial balance validity start date | N |
| financialAccount.accountBalance.validFor.endDateTime | string | Financial balance validity end date | N |
| paymentPlan | Array | Payment plan details | N |
| paymentPlan.planType | string | Payment plan type | N |
| paymentPlan.priority | number | Payment plan priority | N |
| paymentPlan.status | string | Payment plan status | N |
| paymentPlan.paymentFrequency | string | Payment frequency code | N |
| paymentPlan.@Type | string | Payment plan classification | N |
| characteristic | Array | Additional account characteristics | N |
| characteristic.name | string | Characteristic name | N |
| characteristic.value | any | Characteristic value | N |
| characteristic.valueType | string | Datatype of characteristic value | N |
| relatedParty | Array | Parties related to billing account | N |
| relatedParty.id | string | Related party identifier | N |
| relatedParty.name | string | Related party name | N |
| relatedParty.value | string | Related party value | N |
| relatedParty.role | string | Related party role | N |
| relatedParty.@type | string | Related party type | N |
| relatedParty.@baseType | string | Related party base type | N |
| relatedParty.@referredType | string | Referred type of related party | N |
| relatedParty.characteristic | Array | Characteristics of related party | N |
| relatedParty.characteristic.name | string | Characteristic name | N |
| relatedParty.characteristic.value | any | Characteristic value | N |
| relatedParty.characteristic.valueType | string | Characteristic value datatype | N |